
package wwj.reader;
import java.util.ArrayList;
import java.util.List;
import java.io.IOException;
import java.util.StringTokenizer;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;

public class TabReader {

	 public static List<String> readLine(String str){
		 List<String> ret=new ArrayList<String>();
		 StringTokenizer stringTokenizer=new StringTokenizer(str,"\t");
		 while(stringTokenizer.hasMoreTokens()){
			 ret.add(stringTokenizer.nextToken());
		 }
		 return ret;
	 }
}
